package com.hn.zhijian.web.config.jwt;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @program: carl-main
 * @description: jwt
 * @author: carl
 * @create: 2019-12-09 23:08
 **/
public class JwtToken implements AuthenticationToken {
    /**
     * token
     */
    private String token;

    public JwtToken(String token){
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
